package day05_class;

public class ComputerTest {
    public static void main(String[] args) {

        // 创建对象
        Computer c = new Computer();
        c.brand = "华为";
        c.type = "MateBook D14 SE版";
        c.size = 14;
        c.cpu = "Intel Core i5";
        c.memory = "16GB";
        c.color = "银色";
        c.price = 4999.0;
        c.weight = 1.3;

        // 打印属性
        c.show();
        // 测试方法
        System.out.println("----------------------------------");
        c.playGame();
        c.qiaoDaiMa();
    }
}
